package com.mlnx.device.dao.mysql;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.mlnx.device.entity.Device;
import com.mlnx.device.pojo.dto.DeviceCountDTO;
import com.mlnx.device.pojo.vo.DeviceGroupVO2;
import com.mlnx.device.pojo.vo.DeviceVO;

import java.util.List;

/**
 * Created by amanda.shan on 2019-09-21.
 */
public interface DeviceMapper extends BaseMapper<Device> {
    void batchUpdatePatientId(Integer[] patientIds);

    void batchUpdateStatus(Integer[] ids);

    List<DeviceVO> selectBoundDevicesByPatientId(Integer patientId);

    List<DeviceCountDTO> selectDeviceCount();

    List<DeviceGroupVO2> getDevicesByGroup();
}
